package com.tjsinfo.tjsoa.documentationflow.dangweifawen.dao;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo.TDangweifawenZhengwen;

public class TDangweifawenZhengwenDAO extends HibernateDaoSupport implements ITDangweifawenZhengwenDAO{
	
	private static final Log log = LogFactory
	.getLog(TDangweifawenZhengwenDAO.class);

	public TDangweifawenZhengwen findById(String id) {
		log.debug("getting TDangweifawenZhengwen instance with id: " + id);
		try {
			TDangweifawenZhengwen instance = (TDangweifawenZhengwen) getHibernateTemplate()
					.get(
							"com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo.TDangweifawenZhengwen",
							id);
			return instance;
		} catch (RuntimeException re) {
			log.error("get failed", re);
			throw re;
		}
	}

}
